<template>
	<div>
		<el-button type="text" @click="goRouter">{{ title }}</el-button>
	</div>
</template>
<script>
    import warehouseLog from "../views/warehouseLog";
    export default {
        name: "logDialog",
        data() {
            return {
                dialogVisible: false
            };
        },
        components: {
            warehouseLog
        },
        props: {
            barCode: {
                type: String,
                default: ""
            },
            title: {
                type: String,
                default: "日志"
            }
        },
        methods: {
            goRouter() {
                this.$router.push({
                    path: "/warehouseLogDialog",
                    query: {
                        barCode: this.barCode
                    }
                });
            }
        }
    };
</script>
<style scoped></style>